﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CutDownTime1 : MonoBehaviour {

    public UISprite num;
    public float passTime;
    private DNHundredGame dnGame;
    private DNHundredPanel dnPanel;
	void Start () {
        passTime = 6f;
        dnGame = GameObject.Find("UI Root/Camera").GetComponent<DNHundredGame>();
        dnPanel = GameObject.Find("UI Root/DNPanel100").GetComponent<DNHundredPanel>();
	}
	
	void Update () {
        passTime = passTime - Time.deltaTime;
        int i = (int)passTime;
        num.spriteName = i.ToString();
        if(passTime <= 0){
            //StartCoroutine(DealCards());  
            Destroy(gameObject);
        }     
	}

}
